package com.xing.hosp.service;

import com.xing.hospital.model.hosp.Hospital;
import com.xing.hospital.model.vo.hosp.HospitalQueryVo;
import com.xing.hospital.model.vo.order.SignInfoVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * @Author: xingfuhao
 * @Date: 2022/05/27/17:10
 */

public interface HospitalService {
    /**
     * 保存医院信息到mongoDB中去
     *
     * @param parameterMap
     */
    void save(Map<String, Object> parameterMap);


    Hospital getByHascode(String hascode);

    /**
     * 分页查询
     *
     * @param page
     * @param limit
     * @param hospitalQueryVo
     * @return
     */
    Page<Hospital> selectPage(Integer page, Integer limit, HospitalQueryVo hospitalQueryVo);


    /**
     * 更新医院的上线状态
     *
     * @param id
     * @param status
     */
    void updateHospStatus(String id, int status);

    /**
     * 医院详情信息
     *
     * @param id
     * @return
     */
    Map<String, Object> getHospById(String id);


    /**
     * 获取医院名称
     *
     * @param hoscode
     * @return
     */
    String getHospName(String hoscode);

    Page<Hospital> selectHospPage(Integer page, Integer limit, HospitalQueryVo hospitalQueryVo);

    /**
     * 根据医院名称查询
     *
     * @param hosname
     * @return
     */
    List<Hospital> findByHosname(String hosname);

    /**
     * 根据医院编号获取医院医院预约挂号详情
     *
     * @param hoscode
     * @return
     */
    Map<String, Object> item(String hoscode);


}
